package ModelLayer;

/**
 * This class handle the eksemplar of the dvd
 * 
 * @version (0.1)
 */
public class eksemplar
{
    private String serienr;
    private String anskafdato;
    private String anskafpris;
    private String dvd;
    
    /**
     * Constructor for objects of class eksemplar
     * @param serienr The serialnumber of the dvd copy
     * @param anskafdata The date the dvd is bought
     * @param anskafpris The price of the dvd copy
     * @param dvd The description of the dvd
     */
    public eksemplar(String serienr, String anskafdato, String anskafpris, String dvd)
    {
        this.serienr = serienr;
        this.anskafdato = anskafdato;
        this.anskafpris = anskafpris;
        this.dvd = dvd;
    }
    
    /**
     * Gets the serial number of the dvd
     * @return serienr The serial number of the dvd copy
     */
    public String getSerienr()
    {
        return serienr;
    }
    
    /**
     * Gets the date the dvd was bought
     * @return Return the date the dvd is bought
     */
    public String getAnskafDato()
    {
        return anskafdato;
    }
    
    /**
     * Gets the price of the dvd copy
     * @return anskafpris The price for the dvd
     */
    public String getAnskafPris()
    {
        return anskafpris;
    }
    
    /**
     * Gets the dvd object
     * @return dvd Return the dvd object 
     */
    public String getDvd()
    {
        return dvd;
    }
    
    public void print()
    {
        System.out.println("Serienr             "+serienr);
        System.out.println("Anskaffels Dato:    "+anskafdato);
        System.out.println("Anskaffelses Pris:  "+anskafpris);
        System.out.println("Beskrivelse:        "+dvd);
    }

}
